@echo off
setlocal
set "compiler=%1\bin\g++"
set "input=%2"
set "outputFile=%3"
set "output=%4"
if not exist "%output%" mkdir "%output%"


set "command=%compiler% %input% -g -o %outputFile%"
echo doing: %command%
%command% || goto terminate

echo --------------------------
%outputFile%
:terminate
echo.
endlocal
@echo on